﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Data.Linq.Mapping;

namespace DomainModel
{
    [Table(Name = "main.SiteConfig")]
    public partial class SiteConfig
    {
        #region string Address

        private string _address;
        [DebuggerNonUserCode]
        [Column(Storage = "_address", Name = "Address", DbType = "nvarchar(256)", CanBeNull = false)]
        public string Address
        {
            get
            {
                return _address;
            }
            set
            {
                if (value != _address)
                {
                    _address = value;
                }
            }
        }

        #endregion

        #region string BackupNumber

        private string _backupNumber;
        [DebuggerNonUserCode]
        [Column(Storage = "_backupNumber", Name = "BackupNumber", DbType = "nvarchar(64)", CanBeNull = false)]
        public string BackupNumber
        {
            get
            {
                return _backupNumber;
            }
            set
            {
                if (value != _backupNumber)
                {
                    _backupNumber = value;
                }
            }
        }

        #endregion

        #region string CopRright

        private string _copRright;
        [DebuggerNonUserCode]
        [Column(Storage = "_copRright", Name = "CopRright", DbType = "nvarchar(128)", CanBeNull = false)]
        public string CopRright
        {
            get
            {
                return _copRright;
            }
            set
            {
                if (value != _copRright)
                {
                    _copRright = value;
                }
            }
        }

        #endregion

        #region string Description

        private string _description;
        [DebuggerNonUserCode]
        [Column(Storage = "_description", Name = "Description", DbType = "nvarchar(512)", CanBeNull = false)]
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                if (value != _description)
                {
                    _description = value;
                }
            }
        }

        #endregion

        #region string Email

        private string _email;
        [DebuggerNonUserCode]
        [Column(Storage = "_email", Name = "Email", DbType = "nvarchar(64)", CanBeNull = false)]
        public string Email
        {
            get
            {
                return _email;
            }
            set
            {
                if (value != _email)
                {
                    _email = value;
                }
            }
        }

        #endregion

        #region string Fax

        private string _fax;
        [DebuggerNonUserCode]
        [Column(Storage = "_fax", Name = "Fax", DbType = "nvarchar(32)", CanBeNull = false)]
        public string Fax
        {
            get
            {
                return _fax;
            }
            set
            {
                if (value != _fax)
                {
                    _fax = value;
                }
            }
        }

        #endregion

        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "integer", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region string KeyWord

        private string _keyWord;
        [DebuggerNonUserCode]
        [Column(Storage = "_keyWord", Name = "KeyWord", DbType = "nvarchar(256)", CanBeNull = false)]
        public string KeyWord
        {
            get
            {
                return _keyWord;
            }
            set
            {
                if (value != _keyWord)
                {
                    _keyWord = value;
                }
            }
        }

        #endregion

        #region string Logo

        private string _logo;
        [DebuggerNonUserCode]
        [Column(Storage = "_logo", Name = "Logo", DbType = "nvarchar(128)", CanBeNull = false)]
        public string Logo
        {
            get
            {
                return _logo;
            }
            set
            {
                if (value != _logo)
                {
                    _logo = value;
                }
            }
        }

        #endregion

        #region string PostCode

        private string _postCode;
        [DebuggerNonUserCode]
        [Column(Storage = "_postCode", Name = "PostCode", DbType = "nvarchar(16)", CanBeNull = false)]
        public string PostCode
        {
            get
            {
                return _postCode;
            }
            set
            {
                if (value != _postCode)
                {
                    _postCode = value;
                }
            }
        }

        #endregion

        #region string RegisterNumber

        private string _registerNumber;
        [DebuggerNonUserCode]
        [Column(Storage = "_registerNumber", Name = "RegisterNumber", DbType = "nvarchar(256)", CanBeNull = false)]
        public string RegisterNumber
        {
            get
            {
                return _registerNumber;
            }
            set
            {
                if (value != _registerNumber)
                {
                    _registerNumber = value;
                }
            }
        }

        #endregion

        #region string SiteName

        private string _siteName;
        [DebuggerNonUserCode]
        [Column(Storage = "_siteName", Name = "SiteName", DbType = "nvarchar(128)", CanBeNull = false)]
        public string SiteName
        {
            get
            {
                return _siteName;
            }
            set
            {
                if (value != _siteName)
                {
                    _siteName = value;
                }
            }
        }

        #endregion

        #region int Style

        private int _style;
        [DebuggerNonUserCode]
        [Column(Storage = "_style", Name = "Style", DbType = "int", CanBeNull = false)]
        public int Style
        {
            get
            {
                return _style;
            }
            set
            {
                if (value != _style)
                {
                    _style = value;
                }
            }
        }

        #endregion

        #region string Telephone

        private string _telephone;
        [DebuggerNonUserCode]
        [Column(Storage = "_telephone", Name = "Telephone", DbType = "nvarchar(32)", CanBeNull = false)]
        public string Telephone
        {
            get
            {
                return _telephone;
            }
            set
            {
                if (value != _telephone)
                {
                    _telephone = value;
                }
            }
        }

        #endregion

        #region string Url

        private string _url;
        [DebuggerNonUserCode]
        [Column(Storage = "_url", Name = "Url", DbType = "nvarchar(128)", CanBeNull = false)]
        public string Url
        {
            get
            {
                return _url;
            }
            set
            {
                if (value != _url)
                {
                    _url = value;
                }
            }
        }

        #endregion

    }
}
